package com.zimu.example;

import com.blade.Blade;
import com.blade.mvc.http.Request;
import com.blade.mvc.http.Response;
import com.zimu.example.service.CutImage;

import java.io.IOException;

/**
 * @author : zimu
 * @Date: 2018/7/19 13:00
 * @description :   none
 */
public class Application {
    public static void main(String args[]) throws IOException {

//        Blade.me().start(Application.class, args);
        Blade.me()
                .get("/", ((request, response) -> response.text("hello world!")))
                .get("/hello", ((request, response) -> response.html("<h1>hello Blade!</h1>")))
                .start(Application.class, args);

    }
}
